{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}（{$count}）</h2>
		</div>
		<div class="pull-right">
			<button class="btn btn-danger ajax-post confirm" url="{:url('del')}" target-form="ids">删 除</button>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive">
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th width="30"><input class="checkbox check-all" type="checkbox"></th>
            <th width="60">ID</th>
            <th>订单号</th>
						<th>微信名称</th>
            <th>用户名</th>
            <th>金额</th>
            <th>状态</th>
            <th>送货方式</th>
            <th>支付方式</th>
            <th>下单时间</th>
            <th>是否撤销</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="item"}
          <tr>
            <td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
            <td>{$item['id']}</td>
            <td>{$item['out_trade_no']}</td>
						<td>{$item['nick_name']} </td>
            <td>{$item['user_name']} </td>
            <td>{$item['total']} </td>
            <td>{$item['buystatus']|parse_config_value='pay_status'}</td>
						<td>{$item['way']|parse_config_value='distribution'}</td>
						<td>{$item['pay']|parse_config_value='pay'}</td>
						<td>{$item['create_time']}</td>
						<td>
						  {eq name="$item['status']" value="-1"}
                已撤销
              {else /}
                未撤销
              {/eq}
						</td>
            <td>
              <a href="{:url('edit',array('id'=>$item['id']))}">编辑</a>
              <a href="{:url('del',array('id'=>$item['id']))}" class="confirm ajax-get">删除</a>
            </td>
          </tr>
          {/volist}
        </tbody>
      </table>
			{$list->render()}
		</div>
	</div>
</div>
{/block}
